#ifndef ALTTREE_HPP
#define ALTTREE_HPP

#include "points.hpp"

class Cquad {
	point* list;
	// you smaller quad pos
	Cquad* topl;
	Cquad* topr;
	Cquad* botl;
	Cquad* botr;
	vec doref(vec& ref, vec& mid, short side);
	vec domid(vec& ref, vec& mid, short side);
public:
	bool check;
	Cquad();
	~Cquad();
	void kill();
	void make(point* pptr, vec ref, vec mid, short lv);
	point* find(const vec& mouse, vec ref, vec mid);

};

#endif
